
	#------------------------------------------------------------------
	# R-type Instruction (ALU) Test Program
	#------------------------------------------------------------------

	org	0x0000
	ori		$1,$zero,0x0105
	ori		$2,$zero,0x0105

	ori		$21,$zero,0x80
	ori		$22,$zero,0x0C00

# Now running all R type instructions
	addu	$3, $1, $2
	addu	$4, $3, $1
	addu	$5, $4, $3
	addu	$6,	$5, $3
	nop

# Make sure immediates aren't forwarded
	addu	$7, $1, $2
	addiu	$8, $7, 1
	andi	$9, $7, 0xFF00
	lui		$10, 0x05F0
	addu	$11, $1, $2
	ori		$12, $11, 0x0101
	slti	$13, $11, 0xFFFF
	sltiu	$14, $11, 0xFFFF
	addu	$15, $1, $2
	xori	$16, $15, 0x5A5A
	
# Store them to verify the results
	sw	$16,	60($22) # this will test forwarding of ALU-SW
	nop
	nop
	nop
	nop
	sw	$1, 0($22)
	nop
	nop
	nop
	nop
	sw	$2,	4($22)
	nop
	nop
	nop
	nop
	sw	$3,	8($22)
	nop
	nop
	nop
	nop
	sw	$4,	12($22)
	nop
	nop
	nop
	nop
	sw	$5,	16($22)
	nop
	nop
	nop
	nop
	sw	$6,	20($22)
	nop
	nop
	nop
	nop
	sw	$7,	24($22)
	nop
	nop
	nop
	nop
	sw	$8,	28($22)
	nop
	nop
	nop
	nop
	sw	$9,	32($22)
	nop
	nop
	nop
	nop
	sw	$10,	36($22)
	nop
	nop
	nop
	nop
	sw	$11,	40($22)
	nop
	nop
	nop
	nop
	sw	$12,	44($22)
	nop
	nop
	nop
	nop
	sw	$13,	48($22)
	nop
	nop
	nop
	nop
	sw	$14,	52($22)
	nop
	nop
	nop
	nop
	sw	$15,	56($22)
	nop
	nop
	nop
	nop

	halt	# that's all
